package com.example.demo.thread.ch5.case04;

import com.example.demo.thread.util.Tools;

import java.util.concurrent.CountDownLatch;

/**
 * @author: htc
 * @date: Created in 14:26 2019/1/14.
 */
public class SampleServiceA extends AbstractService {
    public SampleServiceA(CountDownLatch latch) {
        super(latch);
    }

    @Override
    protected void doStart() throws Exception {
        //模拟实际操作耗时
        Tools.randomPause(1000);
        //省略相关业务代码
    }
}
